package tr.edu.yildiz.ce.app_manager.dao.impl.hibernate;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.InputStream;
import java.sql.SQLException;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

import tr.edu.yildiz.ce.app_manager.dao.ApplicationDao;
import tr.edu.yildiz.ce.app_manager.dao.ProxyDao;
import tr.edu.yildiz.ce.app_manager.model.AppProxy;
import tr.edu.yildiz.ce.app_manager.model.Application;

@Repository
public class ApplicationDaoImpl extends BasicDaoImpl<Application,Long> implements ApplicationDao{

	public String getApplicationXml(Long id) throws Exception {
		Application application = super.get(id);
		return new String (application.getAppXmlAsByteArray());
	}
	
}
